package com.dao;

import com.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> liseMenuByPid(@Param(value = "pid") Integer pid, @Param(value = "userId") Integer userId);
    List<Menu> liseMenu(@Param(value = "id") Integer id);
    List<Menu> selectListMenu();
    List<Menu> selectListMenuByPid(@Param(value = "pid") Integer pid);
}